<HTML><HEAD><TITLE>xref(+File, +Options)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(xref)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>xref(+File, +Options)</H1>
Display a call graph for a source module file
<DL>
<DT><EM>File</EM></DT>
<DD>Name of the source file (atom or string)
</DD>
<DT><EM>Options</EM></DT>
<DD>A list of Option:Value structures
</DD>
</DL>
<H2>Description</H2>

    Computes a call graph for the given source file and displays it.
    The possible options are:
<DL>
    <DT>builtins ('off' or 'on')</DT>
	<DD>selects whether to show built-in predicates or not. Default: off.</DD>
    <DT>output ('text', 'graphviz', graphviz(Options), 'daVinci' or file(File))</DT>
	<DD>selects how to show the results. 'text' is a for a simple textual
	listing on the output stream, file(File) writes text output into
	the specified file, 'daVinci' uses the daVinci graph drawing library,
	'graphviz' uses the graphviz graph drawing library. Default: text.</DD>
    <DT>relation ('calls' or 'called_by')</DT>
	<DD>selects whether to print the 'calls' relation or it inverse,
	the 'called_by' relation. Default: calls.</DD>
</DL>
    
<H3>Modules</H3>
This predicate is sensitive to its module context (tool predicate, see @/2).
<H2>See Also</H2>
<A HREF="../../lib/xref/call_graph-3.html">call_graph / 3</A>
</BODY></HTML>
